// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
// 引入element.ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from './router'
import store from './store'
import axios from 'axios'
import VueAxios from 'vue-axios'
import Vuex from 'vuex'
//引入cookie
import VueCookies from 'vue-cookies'
//vant组件里的标签栏
import { Tabbar, TabbarItem } from 'vant';
import { Swipe, SwipeItem } from 'vant';
import { Rate } from 'vant';
import { DropdownMenu, DropdownItem } from 'vant';
import { TreeSelect } from 'vant';
import { Tab, Tabs } from 'vant';
import { Sidebar, SidebarItem } from 'vant';
import { Card } from 'vant';
import { Cell, CellGroup } from 'vant';
import { Button } from 'vant';
import { SubmitBar } from 'vant';
import { Popup } from 'vant';
import { ShareSheet } from 'vant';

Vue.use(ShareSheet);
Vue.use(Popup);
Vue.use(SubmitBar);
Vue.use(Button);
Vue.use(Cell);
Vue.use(CellGroup);

Vue.use(TreeSelect);
Vue.use(Card);
Vue.use(Sidebar);
Vue.use(SidebarItem);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(TreeSelect);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Rate);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(ElementUI);
Vue.use(VueCookies)
Vue.use(Vuex)
Vue.use(VueAxios, axios)
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
